
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreCouponProductRequest struct {

	CouponId string `json:"coupon_id" form:"coupon_id"`

	ProductId string `json:"product_id" form:"product_id"`

	CategoryId string `json:"category_id" form:"category_id"`

}

func (r *StoreCouponProductRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreCouponProductRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"coupon_id": "required",

		"product_id": "required",

		"category_id": "required",

	}
}

func (r *StoreCouponProductRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreCouponProductRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreCouponProductRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
